package com.cdtye.shuoh.service.product.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cdtye.shuoh.domain.product.entity.ProductCommandsRequests;
import com.cdtye.shuoh.mapper.product.ProductCommandsRequestsMapper;
import com.cdtye.shuoh.service.product.ProductCommandsRequestsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductCommandsResquestsServiceImpl extends ServiceImpl<ProductCommandsRequestsMapper, ProductCommandsRequests> implements ProductCommandsRequestsService {
    @Autowired
    private ProductCommandsRequestsMapper productCommandsRequestsMapper;

    @Override
    public int deleteByCommandId(String commandId) {
        if(null!=commandId){
            return productCommandsRequestsMapper.deleteByCommandId(commandId);
        }
        return 0;
    }
}
